package javaDemo11.多线程;

public class Producer implements Runnable{
    private BOX b;


    public Producer(BOX b){
        this.b = b;
    }
    @Override
    public void run() {
        for (int i = 0; i <= 5; i++) {
            b.put(i);
        }
    }
}
